<template>
  <TabBar >
    <TarBarItem path="/home"  activeColor="red">
      <img slot="item-img" src="/img/tabbar/home.svg" alt="">
      <img slot="item-active-img" src="/img/tabbar/home_active.svg" alt="">
      <div slot="item-text">首页</div>
    </TarBarItem>
    <TarBarItem path="/test" active-color="red">
      <img slot="item-img" src="/img/tabbar/category.svg" alt="">
      <img slot="item-active-img" src="/img/tabbar/category_active.svg" alt="">
      <div slot="item-text">分类</div>
    </TarBarItem>
    <TarBarItem path="/cart" active-color="red">
      <img slot="item-img" src="/img/tabbar/shopcart.svg" alt="">
      <img slot="item-active-img" src="/img/tabbar/shopcart_active.svg" alt="">
      <div slot="item-text">购物车</div>
    </TarBarItem>
    <TarBarItem path="/profile" active-color="red">
      <img slot="item-img" src="/img/tabbar/profile.svg" alt="">
      <img slot="item-active-img" src="/img/tabbar/profile_active.svg" alt="">
      <div slot="item-text">我的</div>
    </TarBarItem>
  </TabBar>
</template>

<script>
    import TarBarItem from "../../common/tabbar/TarBarItem";
    import TabBar from "../../common/tabbar/TabBar";
    export default {
        name: "MainTabBar",
        components:{
            TarBarItem,
            TabBar
        },

    }
</script>

<style scoped>

</style>
